<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:p="http://primefaces.org/ui"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:f="http://xmlns.jcp.org/jsf/core">

    <h:head>        
        <title>Facelet Title</title>
    </h:head>

    <h:body>
        <h:form>
            <p:layout fullPage="true">
                <p:layoutUnit position="north" size="60">
                    <center>
                        <h:outputText value="#{msgs.fit_Sitemas}" style="font-size:35px;"/>
                    </center>
                </p:layoutUnit>
                <p:layoutUnit position="south" size="100">
                    <h:outputText value="Bottom content." />
                </p:layoutUnit>
                <p:layoutUnit position="west">
                    <div>
                        <p:menu>
                            <p:submenu label="Ajax Menuitems">  
                                <p:menuitem value="Save" icon="ui-icon-disk"/>  
                                <p:menuitem value="Update" icon="ui-icon-arrowrefresh-1-w" onclick="val();"/>  
                            </p:submenu>
                        </p:menu>
                    </div>
                </p:layoutUnit>
                <p:layoutUnit position="east" size="200">
                    <h:outputText value="Right Content" />
                </p:layoutUnit>
                <p:layoutUnit position="center">
                    <p:tabView>

                        <p:tab title="#{msgs.cadastro}">
                            <ui:include src="/Cadastro.xhtml"/>
                            <br/><br/>
                            <ui:include src="/Endereco.xhtml"/>
                            <br/><br/>
                            <p:menubar>
                                <center>
                                    <f:facet name="options">

                                        <p:commandButton action="${pessoaMB.testeSalvar()}" 
                                                         id="salvar" value="Salvar" style="height:35px;"/>                                  
                                    </f:facet>
                                </center>
                            </p:menubar>
                        </p:tab>

                        <p:tab title="#{msgs.endereco}">
                        </p:tab>

                        <p:tab title="#{msgs.fotos}">
                            <center>
                                <ui:include src="/fotos.xhtml"/>
                            </center>
                        </p:tab>

                    </p:tabView>
                </p:layoutUnit>
            </p:layout>
        </h:form>
    </h:body>
</html>
